<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
  <title>后台管理系统</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link href="/resources/css/dpl-min.css" rel="stylesheet" type="text/css" />
  <link href="/resources/css/bui-min.css" rel="stylesheet" type="text/css" />
  <link href="/resources/css/page-min.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div class="container">
  <form id="J_Form" class="form-horizontal" action="/params/save">
    <h3>
      升级费用
    </h3>
    <div class="row">
      <div class="control-group span20">
        <label class="control-label" style="width:130px;"><s>*</s>升级金牌代理：</label>
        <div class="controls">
          <input type="text" name="GoldFee" id="GoldFee" value="${GoldFee}" data-rules="{required:true,min:0,number:true}" />元
        </div>
      </div>
    </div>
    <div class="row">
      <div class="control-group span20">
        <label class="control-label" style="width:130px;"><s>*</s>升级全国总代：</label>
        <div class="controls">
          <input type="text" name="GeneralFee" id="GeneralFee" value="${GeneralFee}" data-rules="{required:true,min:0,number:true}" />元
        </div>
      </div>
    </div>
    <div class="row">
      <div class="control-group span20">
        <label class="control-label" style="width:130px;"><s>*</s>升级区域合伙人：</label>
        <div class="controls">
          <input type="text" name="PartnerFee" id="PartnerFee" value="${PartnerFee}" data-rules="{required:true,min:0,number:true}" />元
        </div>
      </div>
    </div>
    <h3>
      介绍奖励参数
    </h3>
    <div class="row">
      <div class="control-group span20">
        <label class="control-label" style="width:130px;"><s>*</s>介绍金牌代理商：</label>
        <div class="controls">
          <input type="text" name="GoldAmount" id="GoldAmount" value="${GoldAmount}"  data-rules="{required:true,min:0,number:true}"/>元
        </div>
      </div>
    </div>

    <div class="row">
      <div class="control-group span20">
        <label class="control-label" style="width:130px;"><s>*</s>介绍全国总代：</label>
        <div class="controls">
          <input type="text" name="GeneralAmount" id="GeneralAmount" value="${GeneralAmount}"  data-rules="{required:true,min:0,number:true}"/>元
        </div>
      </div>
    </div>

    <div class="row">
      <div class="control-group span20">
        <label class="control-label" style="width:130px;"><s>*</s>介绍区域合伙人：</label>
        <div class="controls">
          <input type="text" name="PartnerAmount" id="PartnerAmount" value="${PartnerAmount}"  data-rules="{required:true,min:0,number:true}"/>元
        </div>
      </div>
    </div>
    <h3>资金沉淀参数</h3>
    <div class="row">
      <div class="control-group span20">
        <label class="control-label" style="width:130px;"><s>*</s>普通用户：</label>
        <div class="controls">
          <input type="text" name="CustomerZjcd" id="CustomerZjcd" value="${CustomerZjcd}"  data-rules="{required:true,min:0,number:true}"/>
        </div>
      </div>
    </div>

    <div class="row">
      <div class="control-group span20">
        <label class="control-label" style="width:130px;"><s>*</s>会员：</label>
        <div class="controls">
          <input type="text" name="MemberZjcd" id="MemberZjcd" value="${MemberZjcd}"  data-rules="{required:true,min:0,number:true}"/>
        </div>
      </div>
    </div>

    <h3>区域合伙人管理费用</h3>
     <div class="row">
          <div class="control-group span20">
              <label class="control-label" style="width:130px;"><s>*</s>管理费系数：</label>
              <div class="controls">
                  <input type="text" name="ManageFee" id="ManageFee" value="${ManageFee}"  data-rules="{required:true,min:0,number:true}"/>
              </div>
          </div>
     </div>

    <h3>提现转账费用设置</h3>
    <div class="row">
      <div class="control-group span20">
        <label class="control-label" style="width:130px;"><s>*</s>最低提现额度：</label>
        <div class="controls">
          <input type="text" name="TxMinAmount" id="TxMinAmount" value="${TxMinAmount}"  data-rules="{required:true,min:0,number:true}"/>元
        </div>
      </div>
    </div>

    <div class="row">
      <div class="control-group span20">
        <label class="control-label" style="width:130px;"><s>*</s>提现手续费：</label>
        <div class="controls">
          千分之<input type="text" name="TxFee" id="TxFee" value="${TxFee}"  data-rules="{required:true,min:0,number:true}"/>
        </div>
      </div>
    </div>

    <div class="row">
      <div class="control-group span20">
        <label class="control-label" style="width:130px;"><s>*</s>现金币与购物币兑换比例：</label>
        <div class="controls">
          1:<input type="text" name="TransferAmout" id="TransferAmout" value="${TransferAmout}"  data-rules="{required:true,min:0,number:true}"/>元
        </div>
      </div>
    </div>

    <h3>零售分红比例</h3>
    <div class="row">
      <div class="control-group span20">
        <label class="control-label" style="width:130px;"><s>*</s>零售分红：</label>
        <div class="controls">
          <input type="text" name="RetailFee" id="RetailFee" value="${RetailFee}"  data-rules="{required:true,min:0,number:true}"/>%
        </div>
      </div>
    </div>

    <h3>区域合伙人分红</h3>
    <div class="row">
      <div class="control-group span20">
        <label class="control-label" style="width:130px;"><s>*</s>是否自动区域分红：</label>
        <div class="controls">
          <input type="radio" name="AutoFh" id="AutoFh1" value="0"  <c:if test="${AutoFh eq '0'}">checked</c:if> />否
          <input type="radio" name="AutoFh" id="AutoFh2" value="1"  <c:if test="${AutoFh eq '1'}">checked</c:if> />是
        </div>
      </div>
    </div>

    <div class="row form-actions actions-bar">
      <div class="span13 offset3 ">
        <button type="submit" class="button button-primary">保存</button>
        <button type="button" class="button" onclick="back()">返回</button>
      </div>
    </div>

  </form>
</div>
<script type="text/javascript" src="/resources/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="/resources/js/sea.js"></script>
<script type="text/javascript" src="/resources/js/bui-min.js"></script>
<script type="text/javascript" src="/resources/js/config-min.js"></script>


<script type="text/javascript">
  BUI.use('common/page'); //页面链接跳转
  BUI.use(['bui/tree','bui/form'],function (Tree,Form) {

    var form = new Form.HForm({
      srcNode : '#J_Form',
      submitType:"ajax",
      listeners:{
        beforesubmit:function(){

          return true;
        }
      },
      callback:function(data){
        BUI.Message.Alert(data.msg,function(){
          if(data.success){
           back();
          }
        },'info');
      }
    });

    form.render();
  });

  function back(){
    top.topManager.openPage({
      id : 'param_list',
      isClose : true
    });
    top.topManager.reloadPage('param_list');
  }
</script>

<body>
</html> 